package business;

import util.IntertypeType;


public class Intertype {
	private IntertypeType type;
	private String codeToInclude;
	private String placeToInclude;
	private Formals functionFormals;

	private boolean isValidInclude = true;
	
	public Intertype(String codeToInclude, String placeToInclude, IntertypeType type) {
		this.type = type;
		this.codeToInclude = codeToInclude;
		this.placeToInclude = placeToInclude;
	}

	public Intertype(String codeToInclude, String placeToInclude, Formals functionFormals, IntertypeType type) {
		this.type = type;
		this.codeToInclude = codeToInclude;
		this.placeToInclude = placeToInclude;
		this.functionFormals = functionFormals;
	}

	public String getCodeToInclude() {
		return codeToInclude;
	}

	public String getPlaceToInclude() {
		return placeToInclude;
	}

	public Formals getFunctionFormals() {
		return functionFormals;
	}

	public IntertypeType getType() {
		return type;
	}

	public boolean isValidInclude() {
		return isValidInclude;
	}

	public void setValidInclude(boolean isValidInclude) {
		this.isValidInclude = isValidInclude;
	}
}
